home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-0295.lzh / AMOSLIST / text0043.txt < prev    next >
Encoding:
Text File  |  1995-03-01  |  2.3 KB  |  54 lines

  1. On Mon, 9 Jan 1995, Christian Mumenthaler wrote:
  2. > Hello!
  3. > I have programmed a protein (wire-frame) viewing program
  4. > and I have experienced the same speed problems as you have.
  5. > After having optimized the code, I have started to translate
  6. > some routines in Assembler. Unfortunately, I was quite
  7. > disappointed at the speed-increase. Excepted a simple
  8. > Bubblesort routine which I use for a Z-sort and which
  9. > ran about 40 times faster, the rest did not even run
  10. > twice as fast as before. I'm not an Assembler expert, but
  11. > I tried to use registers and keep the data in the cache. I
  12. > don't believe that a good Assembler programmer would make it
  13. > run much faster.
  14. > Anyway, as the program rotates about 550 lines 5 times per
  15. > second on my A4000/040 and it did maybe 300 lines before
  16. > I used my Assembler routines, I guess that you could speed
  17. > up your actual program a lot by simply optimizing it!
  18. > (An A1200 can't be 15-20 times slower than a A4000, can it?)
  19. > First, use only interger arithmetics by multiplying all coordinates
  20. > by 2^x with x being at least 10 (depends on the accuracy needed).
  21. > Before displaying it on the screen you will have to divide it again by 
  22. > this number, but fortunately both, multiplication and division can
  23. > be done with the shift operators of AmosPro (Asr.l and Asl.l, I think.
  24. > I have Amos Creator where they don't exist.)
  25. > Do also use the commands Add and Sub where possible. They are all
  26. > translated pretty much 1:1 in Assembler, at least I guess so.
  27. > Secondly, use the TurboLib extension! The F_draw command is about
  28. > twice as fast as the AMOS command which makes an enormous speed
  29. > increase (in the current version of my program, 50% of the time
  30. > is consumed in the drawing routine!). You can also use the fast
  31. > command to clear the bitplanes.
  32. > I have never tested Amos3D, but maybe this could also be of some
  33. > help? Anyone?
  34. > Good luck,
  35. >     Chris
  36. I find that hard to believe that Assembler doesn't make your progs much 
  37. faster.  All the programs that I translated from AMOS to BlitzBasic2 are 
  38. at least five times as fast as compiled Amos codes. Assembler should be 
  39. faster than BB2 as well so I think its just your coding.
  40. BTW, is there a forum like this one for the amazing BlitzBasic?
  41.  
  42. Chris Wysocki
  43. Toronto, Canada
  44.  
  45.